<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" type="text/css" href="../../static/css/jpetstore.css"/>
    <meta charset="UTF-8">
    <title>All Goods</title>
    <link rel="stylesheet" href="../css/jpetstore.css" type="text/css" media="screen" />

</head>
<body>

<div th:replace="common/left">

</div>

<div id="BackLink">
    <a th:href = "'/admin_catalog/admin_viewProduct?productId='+${product.productId}">Return to <label th:text="${product.productId}" ></label></a>
</div>

<div id="bCatalog">
    <form action="/admin_catalog/admin_updateProduct" th:object="${product}">

        <h3>Product Information</h3>

        <table id="productform">
            <tr>
                <td>Product ID:</td>
                <td ><input type="text" name="oldProductId" readonly th:value="${product.productId}"/></td>
                <!--<td ><input type="text" name="newProductId"  th:value="${product.productId}"/></td>-->
            </tr>

            <tr>
                <td>Name:</td>
                <td ><input type="text" name="newName" th:value="${product.name}"/></td>
            </tr>
            <tr>
                <td>Description:</td>
                <td ><input type="text" name="newDescription" th:value="${product.description}"/></td>
            </tr>

        </table>


        <input type="submit" name="changeProduct" value="Save"/>

    </form>

</div>
</body>
</html>